#include "app_mqtt.h"
#include <stdio.h>
#include<unistd.h>

static int app_mqtt_recv_callback(char *data, int len)

{
    printf("recv data from mqtt: %s\n", data);
    return 0;
}

int main(int argc, char *argv[])
{
    app_mqtt_init();
    app_mqtt_register_recv_callback(app_mqtt_recv_callback);
    // app_mqtt_send("hello world", 11);
    while (1)
    {
        sleep(1);
    }
    return 0;
}